import sys
from com.l2jserver.gameserver.model.actor.instance import L2PcInstance
from java.util import Iterator
from com.l2jserver.gameserver.datatables import SkillTable
from com.l2jserver	import L2DatabaseFactory
from com.l2jserver.gameserver.model.quest import State
from com.l2jserver.gameserver.model.quest import QuestState
#from com.l2jserver.gameserver.model.actor import L2Character
from com.l2jserver.gameserver.model.quest.jython import QuestJython as JQuest

qn = "343434_NPCBuffer"

NPC=[10005]
ADENA_ID=57
QuestId     = 343434
QuestName   = "NPCBuffer"
QuestDesc   = "custom"
InitialHtml = "1.htm"

print "importing custom: 343434: NPCBuffer"

class Quest (JQuest) :

	def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr)


	def onEvent(self,event,st):
		htmltext = event

		#####################	SRART

########################################################### HTML 6  CHANT BUFF ##################################################
	#Chant of Battle
		if event == "1":
			SkillTable.getInstance().getInfo(1007,3).getEffects(st.getPlayer(),st.getPlayer())
			
			return "6.htm"
			st.setState(COMPLETED)

	#Chant of Shielding
		if event == "2":
			SkillTable.getInstance().getInfo(1009,3).getEffects(st.getPlayer(),st.getPlayer())
			
			return "6.htm"
			st.setState(COMPLETED)

	#Chant of fire
		if event == "3":
			SkillTable.getInstance().getInfo(1006,3).getEffects(st.getPlayer(),st.getPlayer())
			
			return "6.htm"
			st.setState(COMPLETED)

	#Chant of Flame
		if event == "4":
			SkillTable.getInstance().getInfo(1002,3).getEffects(st.getPlayer(),st.getPlayer())
			
			return "6.htm"
			st.setState(COMPLETED)

	#Chant of Life
		if event == "5":
			SkillTable.getInstance().getInfo(1229,3).getEffects(st.getPlayer(),st.getPlayer())
			
			return "6.htm"
			st.setState(COMPLETED)
	#Chant of Fury
		if event == "6":
			SkillTable.getInstance().getInfo(1251,2).getEffects(st.getPlayer(),st.getPlayer())
			
			return "6.htm"
			st.setState(COMPLETED)

	
	#Chant of Evasion
		if event == "7":
			SkillTable.getInstance().getInfo(1252,3).getEffects(st.getPlayer(),st.getPlayer())
			
			return "6.htm"
			st.setState(COMPLETED)

	#Chant of Rage
		if event == "8":
			SkillTable.getInstance().getInfo(1253,3).getEffects(st.getPlayer(),st.getPlayer())
			
			return "6.htm"
			st.setState(COMPLETED)

	#Chant of Revenge
		if event == "9":
			SkillTable.getInstance().getInfo(1284,3).getEffects(st.getPlayer(),st.getPlayer())
			
			return "6.htm"
			st.setState(COMPLETED)

	#Chant of Vampire
		if event == "10":
			SkillTable.getInstance().getInfo(1310,3).getEffects(st.getPlayer(),st.getPlayer())
			
			return "6.htm"
			st.setState(COMPLETED)

	#Chant of Eagle
		if event == "11":
			SkillTable.getInstance().getInfo(1309,3).getEffects(st.getPlayer(),st.getPlayer())
			
			return "6.htm"
			st.setState(COMPLETED)

	#Chant of Predator
		if event == "12":
			SkillTable.getInstance().getInfo(1308,3).getEffects(st.getPlayer(),st.getPlayer())
			
			return "6.htm"
			st.setState(COMPLETED)
	#Chant of Spirit
		if event == "13":
			SkillTable.getInstance().getInfo(1362,1).getEffects(st.getPlayer(),st.getPlayer())
			
			return "6.htm"
			st.setState(COMPLETED)


########################################################### HTML 4  SONG BUFF ##################################################


#Song of Warding
		if event == "14":
			SkillTable.getInstance().getInfo(267,1).getEffects(st.getPlayer(),st.getPlayer())			
			return "4.htm"
			st.setState(COMPLETED)



#Song of Earth
		if event == "15":
			SkillTable.getInstance().getInfo(264,1).getEffects(st.getPlayer(),st.getPlayer())			
			return "4.htm"
			st.setState(COMPLETED)



#Song of Wind
		if event == "16":
			SkillTable.getInstance().getInfo(268,1).getEffects(st.getPlayer(),st.getPlayer())			
			return "4.htm"
			st.setState(COMPLETED)



#Song of Flame Guard
		if event == "17":
			SkillTable.getInstance().getInfo(306,1).getEffects(st.getPlayer(),st.getPlayer())			
			return "4.htm"
			st.setState(COMPLETED)

#Song of Hunter
		if event == "18":
			SkillTable.getInstance().getInfo(269,1).getEffects(st.getPlayer(),st.getPlayer())			
			return "4.htm"
			st.setState(COMPLETED)

#Song of Invocation
		if event == "19":
			SkillTable.getInstance().getInfo(270,1).getEffects(st.getPlayer(),st.getPlayer())			
			return "4.htm"
			st.setState(COMPLETED)


#Song of life
		if event == "20":
			SkillTable.getInstance().getInfo(265,1).getEffects(st.getPlayer(),st.getPlayer())			
			return "4.htm"
			st.setState(COMPLETED)

#Song of Meditation
		if event == "21":
			SkillTable.getInstance().getInfo(363,1).getEffects(st.getPlayer(),st.getPlayer())			
			return "4.htm"
			st.setState(COMPLETED)

#Song of Vengeance
		if event == "22":
			SkillTable.getInstance().getInfo(305,1).getEffects(st.getPlayer(),st.getPlayer())			
			return "4.htm"
			st.setState(COMPLETED)


#Song of Vitality
		if event == "23":
			SkillTable.getInstance().getInfo(304,1).getEffects(st.getPlayer(),st.getPlayer())			
			return "4.htm"
			st.setState(COMPLETED)
			

#Song of Water
		if event == "24":
			SkillTable.getInstance().getInfo(266,1).getEffects(st.getPlayer(),st.getPlayer())			
			return "4.htm"
			st.setState(COMPLETED)


#Song of Storm Guard
		if event == "25":
			SkillTable.getInstance().getInfo(308,1).getEffects(st.getPlayer(),st.getPlayer())			
			return "4.htm"
			st.setState(COMPLETED)
		
#Resist Shock
		if event == "109":
			SkillTable.getInstance().getInfo(1259,4).getEffects(st.getPlayer(),st.getPlayer())
			
			return "4.htm"
			st.setState(COMPLETED)
			
########################################################### HTML 2  BUFF BUFF ##################################################

			
#Acumen
		if event == "26":
			SkillTable.getInstance().getInfo(1085,3).getEffects(st.getPlayer(),st.getPlayer())
			
			return "2.htm"
			st.setState(COMPLETED)


		
#Berserker Spirit
		if event == "27":
			SkillTable.getInstance().getInfo(1062,2).getEffects(st.getPlayer(),st.getPlayer())
			
			return "2.htm"
			st.setState(COMPLETED)
			
#Bless Shield
		if event == "28":
			SkillTable.getInstance().getInfo(1243,6).getEffects(st.getPlayer(),st.getPlayer())
			
			return "2.htm"
			st.setState(COMPLETED)

#Blessed Body
		if event == "29":
			SkillTable.getInstance().getInfo(1045,6).getEffects(st.getPlayer(),st.getPlayer())
			
			return "2.htm"
			st.setState(COMPLETED)

#Blessed Soul
		if event == "30":
			SkillTable.getInstance().getInfo(1048,6).getEffects(st.getPlayer(),st.getPlayer())
			
			return "2.htm"
			st.setState(COMPLETED)


#Concentration
		if event == "31":
			SkillTable.getInstance().getInfo(1078,6).getEffects(st.getPlayer(),st.getPlayer())
			
			return "2.htm"
			st.setState(COMPLETED)

#Clarity
		if event == "32":
			SkillTable.getInstance().getInfo(1397,3).getEffects(st.getPlayer(),st.getPlayer())
			
			return "2.htm"
			st.setState(COMPLETED)	

#Death Whisper
		if event == "33":
			SkillTable.getInstance().getInfo(1242,3).getEffects(st.getPlayer(),st.getPlayer())
			
			return "2.htm"
			st.setState(COMPLETED)
#Empower
		if event == "34":
			SkillTable.getInstance().getInfo(1059,3).getEffects(st.getPlayer(),st.getPlayer())
			
			return "2.htm"
			st.setState(COMPLETED)

#Focus
		if event == "35":
			SkillTable.getInstance().getInfo(1077,3).getEffects(st.getPlayer(),st.getPlayer())
			
			return "2.htm"
			st.setState(COMPLETED)
#Guidance
		if event == "36":
			SkillTable.getInstance().getInfo(1240,3).getEffects(st.getPlayer(),st.getPlayer())
			
			return "2.htm"
			st.setState(COMPLETED)
#Haste
		if event == "37":
			SkillTable.getInstance().getInfo(1086,2).getEffects(st.getPlayer(),st.getPlayer())
			
			return "2.htm"
			st.setState(COMPLETED)
#Wind Walk
		if event == "38":
			SkillTable.getInstance().getInfo(1204,2).getEffects(st.getPlayer(),st.getPlayer())
			
			return "2.htm"
			st.setState(COMPLETED)
 #Invigor
		if event == "39":
			SkillTable.getInstance().getInfo(1032,3).getEffects(st.getPlayer(),st.getPlayer())
			
			return "2.htm"
			st.setState(COMPLETED)
#Magic Barrier
		if event == "40":
			SkillTable.getInstance().getInfo(1036,2).getEffects(st.getPlayer(),st.getPlayer())
			
			return "2.htm"
			st.setState(COMPLETED)
#Mental Shield
		if event == "41":
			SkillTable.getInstance().getInfo(1035,4).getEffects(st.getPlayer(),st.getPlayer())
			
			return "2.htm"
			st.setState(COMPLETED)
#Might
		if event == "42":
			SkillTable.getInstance().getInfo(1068,3).getEffects(st.getPlayer(),st.getPlayer())
			
			return "2.htm"
			st.setState(COMPLETED)
#Wild Magic
		if event == "43":
			SkillTable.getInstance().getInfo(1303,2).getEffects(st.getPlayer(),st.getPlayer())
			
			return "2.htm"
			st.setState(COMPLETED)
#Shield
		if event == "44":
			SkillTable.getInstance().getInfo(1040,3).getEffects(st.getPlayer(),st.getPlayer())
			
			return "2.htm"
			st.setState(COMPLETED)
#Agility
		if event == "45":
			SkillTable.getInstance().getInfo(1087,3).getEffects(st.getPlayer(),st.getPlayer())
			
			return "2.htm"
			st.setState(COMPLETED)
#Resist Shock
		if event == "46":
			SkillTable.getInstance().getInfo(1259,4).getEffects(st.getPlayer(),st.getPlayer())
			
			return "2.htm"
			st.setState(COMPLETED)
#Greater Shield
		if event == "47":
			SkillTable.getInstance().getInfo(1389,3).getEffects(st.getPlayer(),st.getPlayer())
			
			return "2.htm"
			st.setState(COMPLETED)
#Greater Might
		if event == "48":
			SkillTable.getInstance().getInfo(1388,3).getEffects(st.getPlayer(),st.getPlayer())
			
			return "2.htm"
			st.setState(COMPLETED)





########################################################### HTML 3  Dance BUFF ##################################################

#Siren's Dance  
		if event == "49":
			SkillTable.getInstance().getInfo(365,1).getEffects(st.getPlayer(),st.getPlayer())
			
			return "3.htm"
			st.setState(COMPLETED)
#Dance of Aqua Guard 
		if event == "50":
			SkillTable.getInstance().getInfo(307,1).getEffects(st.getPlayer(),st.getPlayer())
			
			return "3.htm"
			st.setState(COMPLETED)
#Dance of Concentration 
		if event == "51":
			SkillTable.getInstance().getInfo(276,1).getEffects(st.getPlayer(),st.getPlayer())
			
			return "3.htm"
			st.setState(COMPLETED)
#Dance of Earth Guard 
		if event == "52":
			SkillTable.getInstance().getInfo(309,1).getEffects(st.getPlayer(),st.getPlayer())
			
			return "3.htm"
			st.setState(COMPLETED)

#Dance of Fire
		if event == "53":
			SkillTable.getInstance().getInfo(274,1).getEffects(st.getPlayer(),st.getPlayer())
			
			return "3.htm"
			st.setState(COMPLETED)

#Dance of Fury 
		if event == "54":
			SkillTable.getInstance().getInfo(275,1).getEffects(st.getPlayer(),st.getPlayer())
			
			return "3.htm"
			st.setState(COMPLETED)
#Dance of Inspiration  
		if event == "55":
			SkillTable.getInstance().getInfo(272,1).getEffects(st.getPlayer(),st.getPlayer())
			
			return "3.htm"
			st.setState(COMPLETED)
#Dance of Light  
		if event == "56":
			SkillTable.getInstance().getInfo(277,1).getEffects(st.getPlayer(),st.getPlayer())
			
			return "3.htm"
			st.setState(COMPLETED)
#Dance of Protection 
		if event == "57":
			SkillTable.getInstance().getInfo(311,1).getEffects(st.getPlayer(),st.getPlayer())
			
			return "3.htm"
			st.setState(COMPLETED)
#Dance of the Warrior
		if event == "58":
			SkillTable.getInstance().getInfo(271,1).getEffects(st.getPlayer(),st.getPlayer())
			
			return "3.htm"
			st.setState(COMPLETED)
#Dance of Mystic 
		if event == "59":
			SkillTable.getInstance().getInfo(273,1).getEffects(st.getPlayer(),st.getPlayer())
			
			return "3.htm"
			st.setState(COMPLETED)
#Dance of the Vampire 
		if event == "60":
			SkillTable.getInstance().getInfo(310,1).getEffects(st.getPlayer(),st.getPlayer())
			
			return "3.htm"
			st.setState(COMPLETED)







########################################################### Author BUFF ##################################################

#Cancel Buffs 
		if event == "100":
			st.getPlayer().stopAllEffects()
			
			return "1.htm"
			st.setState(COMPLETED)
#Heal
		if event == "101":
			st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())
			st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())
			st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

			return "1.htm"
			st.setState(COMPLETED)
#Nobles
		if event == "102":
			SkillTable.getInstance().getInfo(1323,1).getEffects(st.getPlayer(),st.getPlayer())
			
			return "1.htm"
			st.setState(COMPLETED)
######################################################### Payagon ######################################
#prayer
		if event == "103":
			SkillTable.getInstance().getInfo(1307,1).getEffects(st.getPlayer(),st.getPlayer())
			
			return "5.htm"
			st.setState(COMPLETED)

#victory
		if event == "104":
			SkillTable.getInstance().getInfo(1363,1).getEffects(st.getPlayer(),st.getPlayer())
			
			return "5.htm"
			st.setState(COMPLETED)

#Magnus
		if event == "105":
			SkillTable.getInstance().getInfo(1413,1).getEffects(st.getPlayer(),st.getPlayer())
			
			return "5.htm"
			st.setState(COMPLETED)


#Prophecy of Fire
		if event == "106":
			SkillTable.getInstance().getInfo(1356,1).getEffects(st.getPlayer(),st.getPlayer())
			
			return "5.htm"
			st.setState(COMPLETED)

#Prophecy of Water
		if event == "107":
			SkillTable.getInstance().getInfo(1355,1).getEffects(st.getPlayer(),st.getPlayer())
			
			return "5.htm"
			st.setState(COMPLETED)
#Prophecy of Wins
		if event == "108":
			SkillTable.getInstance().getInfo(1357,1).getEffects(st.getPlayer(),st.getPlayer())
			
			return "5.htm"
			st.setState(COMPLETED)



#Greater Shield Payagon
		if event == "200":
			SkillTable.getInstance().getInfo(1389,3).getEffects(st.getPlayer(),st.getPlayer())
			
			return "5.htm"
			st.setState(COMPLETED)
#Greater Might Pauagon
		if event == "201":
			SkillTable.getInstance().getInfo(1388,3).getEffects(st.getPlayer(),st.getPlayer())
			
			return "5.htm"
			st.setState(COMPLETED)


#Berserker Spirit
		if event == "202":
			SkillTable.getInstance().getInfo(1062,2).getEffects(st.getPlayer(),st.getPlayer())
			
			return "5.htm"
			st.setState(COMPLETED)
#Clarity
		if event == "203":
			SkillTable.getInstance().getInfo(1397,3).getEffects(st.getPlayer(),st.getPlayer())
			
			return "5.htm"
			st.setState(COMPLETED)

######################################################### Auto Buff  Tanker  Dagger  Archer  Mage ######################################
	#Tanker
		if event == "110":
			SkillTable.getInstance().getInfo(4344,3).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(4346,4).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(4349,2).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(1389,3).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(4345,3).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(4347,6).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(4348,6).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(4352,2).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(4354,4).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(1087,3).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(4360,3).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(4358,3).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(4357,2).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(4359,3).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(1032,3).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(4342,2).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(1397,3).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(264,1).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(266,1).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(267,1).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(268,1).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(269,1).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(304,1).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(271,1).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(274,1).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(275,1).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(310,1).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(1363,1).getEffects(st.getPlayer(),st.getPlayer())							
			SkillTable.getInstance().getInfo(1323,1).getEffects(st.getPlayer(),st.getPlayer())
				
			
			return "1.htm"
			st.setState(COMPLETED)	


	#Dagger

		if event == "111":						
			SkillTable.getInstance().getInfo(4344,3).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(4346,4).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(4349,2).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(1389,3).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(4345,3).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(4347,6).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(4348,6).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(4352,2).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(4354,4).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(1087,3).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(4360,3).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(4358,3).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(4357,2).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(4359,3).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(1032,3).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(4342,2).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(1397,3).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(264,1).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(266,1).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(267,1).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(268,1).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(269,1).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(304,1).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(271,1).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(274,1).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(275,1).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(310,1).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(1363,1).getEffects(st.getPlayer(),st.getPlayer())										
			SkillTable.getInstance().getInfo(1323,1).getEffects(st.getPlayer(),st.getPlayer())
			
			return "1.htm"
			st.setState(State.COMPLETED)


	#Archer
		if event == "112":							
			SkillTable.getInstance().getInfo(4344,3).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(4346,4).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(4349,2).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(4345,3).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(1388,3).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(4347,6).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(4348,6).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(4352,2).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(1087,3).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(4360,3).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(4358,3).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(4357,2).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(4359,3).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(1032,3).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(4342,2).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(1397,3).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(264,1).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(266,1).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(267,1).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(268,1).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(269,1).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(304,1).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(271,1).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(274,1).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(275,1).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(1363,1).getEffects(st.getPlayer(),st.getPlayer())										
			SkillTable.getInstance().getInfo(1323,1).getEffects(st.getPlayer(),st.getPlayer())
				
			return "1.htm"			
			st.setState(State.COMPLETED)

	#Mage

		if event == "113":						
			SkillTable.getInstance().getInfo(4344,3).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(4346,4).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(4349,2).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(1243,6).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(1389,3).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(4347,6).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(4348,6).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(4355,3).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(4356,3).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(4352,2).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(1303,1).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(1087,3).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(1397,3).getEffects(st.getPlayer(),st.getPlayer())			
			SkillTable.getInstance().getInfo(4351,6).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(1044,3).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(264,1).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(266,1).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(268,1).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(267,1).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(269,1).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(304,1).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(273,1).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(276,1).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(365,1).getEffects(st.getPlayer(),st.getPlayer())				
			SkillTable.getInstance().getInfo(1413,1).getEffects(st.getPlayer(),st.getPlayer())							
			SkillTable.getInstance().getInfo(1323,1).getEffects(st.getPlayer(),st.getPlayer())
				
			return "1.htm"
			st.setState(State.COMPLETED)


	#Blad/Sword

		if event == "114":					
			SkillTable.getInstance().getInfo(271,1).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(272,1).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(273,1).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(274,1).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(275,1).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(276,1).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(277,1).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(310,1).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(365,1).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(264,1).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(265,1).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(266,1).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(267,1).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(268,1).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(269,1).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(304,1).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(349,1).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(363,1).getEffects(st.getPlayer(),st.getPlayer())
			SkillTable.getInstance().getInfo(364,1).getEffects(st.getPlayer(),st.getPlayer())
				
			return "1.htm"
			st.setState(State.COMPLETED)



		#####################	 END

			if htmltext != event:
				st.setState(COMPLETED)
				st.exitQuest(1)
		return htmltext


	def onTalk (self,npc,player):
	   st = player.getQuestState(qn)
	   htmltext = "<html><head><body><center>ERROR<br1>Please, contact the administrator.</center></body></html>"
	   st.setState(State.STARTED)
	   return InitialHtml

QUEST       = Quest(QuestId,str(QuestId) + "_" + QuestName,QuestDesc)

for npcId in NPC:
 QUEST.addStartNpc(npcId) 
 QUEST.addTalkId(npcId)